package com.pphh.demo.consumer;

import com.alibaba.dubbo.config.annotation.Reference;
import com.pphh.demo.DemoService;

/**
 * A example shows how to control the speed of dubbo rpc calls by concurrent threads
 * this example make reference to sentinel's demo examples.
 * https://github.com/alibaba/Sentinel
 *
 * @author pphh
 * @date 2019/1/18
 */
public class DemoServiceRef {

    @Reference(url = "dubbo://127.0.0.1:25758", timeout = 3000)
    private DemoService demoService;

    public String sayHello(String name) {
        return demoService.sayHello(name);
    }

}
